package com.tour.service.impl;

import com.tour.dao.UserTicketMapper;
import com.tour.service.UserTicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName UserTicketServiceImpl
 * @Author 张梦兴
 * @Date 2020/3/17 21:12
 * @describe
 */
@Service
public class UserTicketServiceImpl implements UserTicketService {
    @Autowired
    private UserTicketMapper dao;

    @Override
    public Map getUserTicketById(int userId, int ticketId) {
        return dao.getUserTicketById(userId, ticketId);
    }

    @Override
    public int insertUserTicket(int userId, int ticketId) {
        return dao.insertUserTicket(userId, ticketId);
    }

    @Override
    public List<Map> getUserTicketById(int userId) {
        return dao.getUserTicketByUserId(userId);
    }
}
